<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<style>
</style>
<script type="text/javascript">

</script>
<div class="easyui-layout" data-options="fit:true,border:false" >
    <div data-options="region:'center',border:false" style="overflow-x:hidden;overflow-y: auto;padding: 3px;" >
    	<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'fi-clock icon-blue'"  onclick="queryHistoryCommentFun('${leave.processInstanceId}')">历史批注</a>
    	<a href="${ctxPath}/process/graphHistoryProcessInstance?processInstanceId=${leave.processInstanceId}" class="easyui-linkbutton" data-options="iconCls:'fi-clock icon-blue'" target="_blank">流程追踪</a>
    	<a href="javascript:;" target="_blank" onclick="printHTML('leavePrint')" class="easyui-linkbutton" data-options="iconCls:'fi-print icon-blue'">打印</a>
    	<a href="javascript:;"  onclick="exp2pdf('请假申请','leavePrint','formId')" class="easyui-linkbutton" data-options="iconCls:'fi-download icon-blue'">导出PDF</a>
        <form method="post" style="display: none" id="formId">
            <input type="text" name="fileName">
            <textarea name="content"></textarea>
        </form>
            <div id="leavePrint">
            <table class="grid" border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
                <tr>
                     <td style="text-align:right;">申请人</td>
                      <td>
                        ${leave.userName}
                     </td>
                  </tr> <tr>
                    <td style="text-align:right;">标题</td>
                      <td>
                        ${leave.title }
                     </td>
                  </tr><tr>
                     <td style="text-align:right;">请假时间</td>
                      <td>
                       <fmt:formatDate value="${leave.leaveDate }" pattern="yyyy-MM-dd"/> 
                     </td>
                     </tr>
                    <tr>
                     <td style="text-align:right;">天数</td>
                      <td>
                        ${leave.days }
                     </td>
                  </tr> 
 				<tr>
                     <td style="text-align:right;">请假原因</td>
                      <td>
                        ${leave.reason }
                     </td>
                  </tr> 
                 <%--  <c:if test="${comments.size()>0 }">
                  <tr>
                  	<td style="text-align:right">
                  		历史批注
                  	</td>
                  	<td>
                  		<c:forEach var="comment" items="${comments}">
                  			<p><b>任务名称：${comment.taskName}</b></p>
                  			<p>评论人：${comment.userName}</p>
                  			<p>评论时间：<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${comment.time}"/></p>
                  			<p>评论内容：${comment.comment}</p>
                  		</c:forEach>
                  	</td>
                  </tr>
                  </c:if> --%>
            </table>
            </div>
    </div>
</div>